package com.mcxx.easyrule.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;


@Data
@ConfigurationProperties("rule.easy-rule")
public class EasyRuleEngineConfigProperties {

    private boolean skipOnFirstAppliedRule;

    private boolean skipOnFirstFailedRule;

    private boolean skipOnFirstNonTriggeredRule;

    private int priorityThreshold;

    private List<RuleConfiguration> rules = new ArrayList<>();;
}
